public class SortTest
{
	public static void main(String[] argv)
	{
		//Sorter alpha = new Sorter();
		Integer[] iar = new Integer[10];
		String[] sar = {  "맹구",
                      "배용준",
                      "땡칠이",
                      "장동건",
                      "강수정",
                      "송창식",
                      "황당해",
                      "고은아",
			"A",
			"B"};

		for(int i = 0; i < 10; i++)
		{
			iar[9 - i] = i;
		}

		System.out.println("BEFORE");
		for(int i = 0; i < 10; i++)
                {
                        System.out.println(iar[i]);
                }

		for(int i = 0; i < 10; i++)
                {
                        System.out.println(sar[i]);
                }


		Comparator stringComp = new StringComparator();
                SorterFinal.sort(sar, stringComp);

		Comparator integerComp = new IntegerComparator();
		SorterFinal.sort(iar, integerComp);

		System.out.println("AFTER");
		for(int i = 0; i < 10; i++)
                {
                        System.out.println(iar[i]);
		}

                for(int i = 0; i < 10; i++)
                {
                        System.out.println(sar[i]);
                }




	}
}
